/**
 * \file HeapObject.h
 * \brief HeapObject declaration class.
 * \author Edouard ROGE
 * \date 08 august 2012
 */

#include "HeapObject.h"


namespace Core
{
	namespace Memory
	{
		HeapObject::HeapObject()
		{

		}


		HeapObject::~HeapObject()
		{

		}

		void * HeapObject::operator new(size_t _iSize)
		{
			return MemoryPoolManager::GetInstance().Allocate(_iSize);
		}

		void HeapObject::operator delete(void * _ptr)
		{
			MemoryPoolManager::GetInstance().Free(_ptr);
		}
	}
}